<template>
    <div>
        Order
        
    </div>
</template>

<script>
import store from "@/store"
export default {
    name:'',
    components: {

    },
    props: {

    },
    data() {
        return {

        };
    },
    methods: {

    },
    // 组件路由前置导航
    beforeRouteEnter(to,from,next){
        let token = localStorage.getItem('x-auth-token')
        if(token){
            //有登录就放行
            next()  
        }else{
            // 没登陆就提示
            store._actions['toastStatus/asyncChangeIsShowToast'][0]({
                msg: '您还没登录',
                type: 'danger'
            })
        }

        return
    }
}
</script>

<style scoped lang="less">

</style>
